<!-- HTML header for doxygen 1.8.8-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <!-- For Mobile Devices -->
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
        <meta name="generator" content="Doxygen 1.8.18"/>
        <script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
        <title>HElib: helib::EncryptedArray Class Reference</title>
        <!--<link href="tabs.css" rel="stylesheet" type="text/css"/>-->
        <script type="text/javascript" src="dynsections.js"></script>
        <link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
        <link href="doxygen.css" rel="stylesheet" type="text/css" />
        <link href="customdoxygen.css" rel="stylesheet" type="text/css"/>
        <link href='https://fonts.googleapis.com/css?family=Roboto+Slab' rel='stylesheet' type='text/css'>
		<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,100;1,700&family=Merriweather&family=Merriweather+Sans&family=Open+Sans&family=Poppins:ital@1&family=Roboto:ital,wght@0,400;1,300;1,900&display=swap" rel="stylesheet"> 
        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
        <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
        <link href="jquery.smartmenus.bootstrap.css" rel="stylesheet">
        <script type="text/javascript" src="jquery.smartmenus.js"></script>
        <!-- SmartMenus jQuery Bootstrap Addon -->
        <script type="text/javascript" src="jquery.smartmenus.bootstrap.js"></script>
        <!-- SmartMenus jQuery plugin -->
    </head>
    <body style="font-family: 'Merriweather', serif;">
        <nav class="navbar navbar-default" role="navigation">
            <div class="container">
                <div class="navbar-header">
                    <a class="navbar-brand">HElib Implementing Homomorphic Encryption</a>
                </div>
            </div>
        </nav>
        <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
            <div class="content" id="content">
                <div class="container">
                    <div class="row">
                        <div class="col-sm-12 panel " style="padding-bottom: 15px;">
                            <div style="margin-bottom: 15px;">
<!-- end header part -->
<!-- Generated by Doxygen 1.8.18 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespacehelib.html">helib</a></li><li class="navelem"><a class="el" href="classhelib_1_1_encrypted_array.html">EncryptedArray</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="classhelib_1_1_encrypted_array-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">helib::EncryptedArray Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>A simple wrapper for a smart pointer to an <a class="el" href="classhelib_1_1_encrypted_array_base.html" title="virtual class for data-movement operations on arrays of slots">EncryptedArrayBase</a>. This is the interface that higher-level code should use.  
 <a href="classhelib_1_1_encrypted_array.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_encrypted_array_8h_source.html">EncryptedArray.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a4a83958f46369fac784b7fa6e4d6fa33"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array.html#a4a83958f46369fac784b7fa6e4d6fa33">EncryptedArray</a> (const <a class="el" href="classhelib_1_1_context.html">Context</a> &amp;context, const NTL::ZZX &amp;G=NTL::ZZX(1, 1))</td></tr>
<tr class="memdesc:a4a83958f46369fac784b7fa6e4d6fa33"><td class="mdescLeft">&#160;</td><td class="mdescRight">constructor: G defaults to the monomial X, <a class="el" href="classhelib_1_1_p_algebra_mod.html" title="The structure of Z[X]/(Phi_m(X), p)">PAlgebraMod</a> from context  <a href="classhelib_1_1_encrypted_array.html#a4a83958f46369fac784b7fa6e4d6fa33">More...</a><br /></td></tr>
<tr class="separator:a4a83958f46369fac784b7fa6e4d6fa33"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a100aaeeedbaf9219fd000f912242a98b"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array.html#a100aaeeedbaf9219fd000f912242a98b">EncryptedArray</a> (const <a class="el" href="classhelib_1_1_context.html">Context</a> &amp;context, const <a class="el" href="classhelib_1_1_p_algebra_mod.html">PAlgebraMod</a> &amp;_alMod)</td></tr>
<tr class="memdesc:a100aaeeedbaf9219fd000f912242a98b"><td class="mdescLeft">&#160;</td><td class="mdescRight">constructor: G defaults to F0, <a class="el" href="classhelib_1_1_p_algebra_mod.html" title="The structure of Z[X]/(Phi_m(X), p)">PAlgebraMod</a> explicitly given  <a href="classhelib_1_1_encrypted_array.html#a100aaeeedbaf9219fd000f912242a98b">More...</a><br /></td></tr>
<tr class="separator:a100aaeeedbaf9219fd000f912242a98b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad5fc659aaaeeb403f21b3c5a951768ce"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classhelib_1_1_encrypted_array.html">EncryptedArray</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array.html#ad5fc659aaaeeb403f21b3c5a951768ce">operator=</a> (const <a class="el" href="classhelib_1_1_encrypted_array.html">EncryptedArray</a> &amp;other)</td></tr>
<tr class="separator:ad5fc659aaaeeb403f21b3c5a951768ce"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa8d1a159d42064013aec1f949bb47327"><td class="memTemplParams" colspan="2">template&lt;typename type &gt; </td></tr>
<tr class="memitem:aa8d1a159d42064013aec1f949bb47327"><td class="memTemplItemLeft" align="right" valign="top">const <a class="el" href="classhelib_1_1_encrypted_array_derived.html">EncryptedArrayDerived</a>&lt; type &gt; &amp;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array.html#aa8d1a159d42064013aec1f949bb47327">getDerived</a> (type) const</td></tr>
<tr class="memdesc:aa8d1a159d42064013aec1f949bb47327"><td class="mdescLeft">&#160;</td><td class="mdescRight">downcast operator example: const EncryptedArrayDerived&lt;PA_GF2&gt;&amp; rep = ea.getDerived(PA_GF2());  <a href="classhelib_1_1_encrypted_array.html#aa8d1a159d42064013aec1f949bb47327">More...</a><br /></td></tr>
<tr class="separator:aa8d1a159d42064013aec1f949bb47327"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a17703423ee9ce78df279ae701bcabdbd"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classhelib_1_1_encrypted_array_cx.html">EncryptedArrayCx</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array.html#a17703423ee9ce78df279ae701bcabdbd">getCx</a> () const</td></tr>
<tr class="separator:a17703423ee9ce78df279ae701bcabdbd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">Direct access to EncryptedArrayBase methods</div></td></tr>
<tr class="memitem:a2e615f01bff3cd2a1f679e419343eeed"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacehelib.html#ab0181d82dc81ed4d1f8c1d950b4efd7e">PA_tag</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array.html#a2e615f01bff3cd2a1f679e419343eeed">getTag</a> () const</td></tr>
<tr class="separator:a2e615f01bff3cd2a1f679e419343eeed"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab2662cc935cd36e0adc8eb52eb8546ee"><td class="memTemplParams" colspan="2">template&lt;template&lt; typename &gt; class T, typename... Args&gt; </td></tr>
<tr class="memitem:ab2662cc935cd36e0adc8eb52eb8546ee"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array.html#ab2662cc935cd36e0adc8eb52eb8546ee">dispatch</a> (Args &amp;&amp;... args) const</td></tr>
<tr class="separator:ab2662cc935cd36e0adc8eb52eb8546ee"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ada6929e7387f3fd6eb74ac762bbe1fcc"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classhelib_1_1_context.html">Context</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array.html#ada6929e7387f3fd6eb74ac762bbe1fcc">getContext</a> () const</td></tr>
<tr class="separator:ada6929e7387f3fd6eb74ac762bbe1fcc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acb9a52b2aae4f41b6ac4a1ababec282a"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classhelib_1_1_p_algebra_mod.html">PAlgebraMod</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array.html#acb9a52b2aae4f41b6ac4a1ababec282a">getAlMod</a> () const</td></tr>
<tr class="separator:acb9a52b2aae4f41b6ac4a1ababec282a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aabf7802b8dbea7aede4c27daeb98166f"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classhelib_1_1_p_algebra.html">PAlgebra</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array.html#aabf7802b8dbea7aede4c27daeb98166f">getPAlgebra</a> () const</td></tr>
<tr class="separator:aabf7802b8dbea7aede4c27daeb98166f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac226637f8cf23a177ae75f5bbedd35e9"><td class="memItemLeft" align="right" valign="top">long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array.html#ac226637f8cf23a177ae75f5bbedd35e9">getDegree</a> () const</td></tr>
<tr class="separator:ac226637f8cf23a177ae75f5bbedd35e9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0f887afd152534c4e5a698962b38565e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array.html#a0f887afd152534c4e5a698962b38565e">rotate</a> (<a class="el" href="classhelib_1_1_ctxt.html">Ctxt</a> &amp;ctxt, long k) const</td></tr>
<tr class="separator:a0f887afd152534c4e5a698962b38565e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa2d8dd041802b88703a472da3ad9150d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array.html#aa2d8dd041802b88703a472da3ad9150d">shift</a> (<a class="el" href="classhelib_1_1_ctxt.html">Ctxt</a> &amp;ctxt, long k) const</td></tr>
<tr class="separator:aa2d8dd041802b88703a472da3ad9150d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af47cc08cfdfd71951986be4fe7f52816"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array.html#af47cc08cfdfd71951986be4fe7f52816">rotate1D</a> (<a class="el" href="classhelib_1_1_ctxt.html">Ctxt</a> &amp;ctxt, long i, long k, bool dc=false) const</td></tr>
<tr class="separator:af47cc08cfdfd71951986be4fe7f52816"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abdda60252affd27b27117b0b692db601"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array.html#abdda60252affd27b27117b0b692db601">shift1D</a> (<a class="el" href="classhelib_1_1_ctxt.html">Ctxt</a> &amp;ctxt, long i, long k) const</td></tr>
<tr class="separator:abdda60252affd27b27117b0b692db601"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab5f2dc888e3749fc056f07607718d40d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array.html#ab5f2dc888e3749fc056f07607718d40d">badDimensionAutomorphCorrection</a> (<a class="el" href="classhelib_1_1_ctxt.html">Ctxt</a> &amp;ctxt, long i, long amt) const</td></tr>
<tr class="separator:ab5f2dc888e3749fc056f07607718d40d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa3175ec1734ff04440b8df29ec4cf2f4"><td class="memTemplParams" colspan="2">template&lt;typename PTXT , typename ARRAY &gt; </td></tr>
<tr class="memitem:aa3175ec1734ff04440b8df29ec4cf2f4"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array.html#aa3175ec1734ff04440b8df29ec4cf2f4">encode</a> (PTXT &amp;ptxt, const ARRAY &amp;array) const</td></tr>
<tr class="separator:aa3175ec1734ff04440b8df29ec4cf2f4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1b802f329dd409388d9da48cd8218726"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array.html#a1b802f329dd409388d9da48cd8218726">encodeUnitSelector</a> (<a class="el" href="namespacehelib.html#a4d6002f36f1a61982fded09adf1331ca">zzX</a> &amp;ptxt, long i) const</td></tr>
<tr class="separator:a1b802f329dd409388d9da48cd8218726"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a909d67c9c516ec5b4f99790f30068ff4"><td class="memTemplParams" colspan="2">template&lt;typename PTXT , typename ARRAY &gt; </td></tr>
<tr class="memitem:a909d67c9c516ec5b4f99790f30068ff4"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array.html#a909d67c9c516ec5b4f99790f30068ff4">decode</a> (ARRAY &amp;array, const PTXT &amp;ptxt) const</td></tr>
<tr class="separator:a909d67c9c516ec5b4f99790f30068ff4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a708feecf486157805b14f0856523be4d"><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
<tr class="memitem:a708feecf486157805b14f0856523be4d"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array.html#a708feecf486157805b14f0856523be4d">random</a> (std::vector&lt; T &gt; &amp;array) const</td></tr>
<tr class="separator:a708feecf486157805b14f0856523be4d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a51692448b383260437f94880699ec0b8"><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
<tr class="memitem:a51692448b383260437f94880699ec0b8"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array.html#a51692448b383260437f94880699ec0b8">encrypt</a> (<a class="el" href="classhelib_1_1_ctxt.html">Ctxt</a> &amp;ctxt, const <a class="el" href="classhelib_1_1_pub_key.html">PubKey</a> &amp;pKey, const T &amp;ptxt) const</td></tr>
<tr class="separator:a51692448b383260437f94880699ec0b8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa014f79a12bb1ca61a83ec3a1f43d858"><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
<tr class="memitem:aa014f79a12bb1ca61a83ec3a1f43d858"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array.html#aa014f79a12bb1ca61a83ec3a1f43d858">decrypt</a> (const <a class="el" href="classhelib_1_1_ctxt.html">Ctxt</a> &amp;ctxt, const <a class="el" href="classhelib_1_1_sec_key.html">SecKey</a> &amp;sKey, T &amp;ptxt) const</td></tr>
<tr class="separator:aa014f79a12bb1ca61a83ec3a1f43d858"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a91e0ea6381b603ca278ac1ca64b289f7"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array.html#a91e0ea6381b603ca278ac1ca64b289f7">buildLinPolyCoeffs</a> (std::vector&lt; NTL::ZZX &gt; &amp;C, const std::vector&lt; NTL::ZZX &gt; &amp;L) const</td></tr>
<tr class="separator:a91e0ea6381b603ca278ac1ca64b289f7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab7cb2f5fdc1c7d4f98e4b6cd7a1bf2fc"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array.html#ab7cb2f5fdc1c7d4f98e4b6cd7a1bf2fc">restoreContext</a> () const</td></tr>
<tr class="separator:ab7cb2f5fdc1c7d4f98e4b6cd7a1bf2fc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a41642d04c74633f6c1a4d23dbde50054"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array.html#a41642d04c74633f6c1a4d23dbde50054">restoreContextForG</a> () const</td></tr>
<tr class="separator:a41642d04c74633f6c1a4d23dbde50054"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9b9d09478922ab218c94de0f6477fda2"><td class="memItemLeft" align="right" valign="top">long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array.html#a9b9d09478922ab218c94de0f6477fda2">size</a> () const</td></tr>
<tr class="separator:a9b9d09478922ab218c94de0f6477fda2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adc1452ff938cb0b4cf5f3d6aa335caaa"><td class="memItemLeft" align="right" valign="top">long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array.html#adc1452ff938cb0b4cf5f3d6aa335caaa">dimension</a> () const</td></tr>
<tr class="separator:adc1452ff938cb0b4cf5f3d6aa335caaa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a23ded635ce06ba41ecbf30b801f67e8b"><td class="memItemLeft" align="right" valign="top">long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array.html#a23ded635ce06ba41ecbf30b801f67e8b">sizeOfDimension</a> (long i) const</td></tr>
<tr class="separator:a23ded635ce06ba41ecbf30b801f67e8b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af8c628cad17d0545363424a7b69cb21f"><td class="memItemLeft" align="right" valign="top">long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array.html#af8c628cad17d0545363424a7b69cb21f">nativeDimension</a> (long i) const</td></tr>
<tr class="separator:af8c628cad17d0545363424a7b69cb21f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aac8802bf761211269b152fe080301136"><td class="memItemLeft" align="right" valign="top">long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array.html#aac8802bf761211269b152fe080301136">coordinate</a> (long i, long k) const</td></tr>
<tr class="separator:aac8802bf761211269b152fe080301136"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7bb033049827a4e517b512faefec9ec6"><td class="memItemLeft" align="right" valign="top">long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array.html#a7bb033049827a4e517b512faefec9ec6">addCoord</a> (long i, long k, long offset) const</td></tr>
<tr class="separator:a7bb033049827a4e517b512faefec9ec6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a43affe53523fea549000a6c5a649a3d8"><td class="memTemplParams" colspan="2">template&lt;typename U &gt; </td></tr>
<tr class="memitem:a43affe53523fea549000a6c5a649a3d8"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classhelib_1_1_encrypted_array.html#a43affe53523fea549000a6c5a649a3d8">rotate1D</a> (std::vector&lt; U &gt; &amp;out, const std::vector&lt; U &gt; &amp;in, long i, long offset) const</td></tr>
<tr class="memdesc:a43affe53523fea549000a6c5a649a3d8"><td class="mdescLeft">&#160;</td><td class="mdescRight">rotate an array by offset in the i'th dimension (output should not alias input)  <a href="classhelib_1_1_encrypted_array.html#a43affe53523fea549000a6c5a649a3d8">More...</a><br /></td></tr>
<tr class="separator:a43affe53523fea549000a6c5a649a3d8"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>A simple wrapper for a smart pointer to an <a class="el" href="classhelib_1_1_encrypted_array_base.html" title="virtual class for data-movement operations on arrays of slots">EncryptedArrayBase</a>. This is the interface that higher-level code should use. </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a4a83958f46369fac784b7fa6e4d6fa33"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4a83958f46369fac784b7fa6e4d6fa33">&#9670;&nbsp;</a></span>EncryptedArray() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">helib::EncryptedArray::EncryptedArray </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classhelib_1_1_context.html">Context</a> &amp;&#160;</td>
          <td class="paramname"><em>context</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const NTL::ZZX &amp;&#160;</td>
          <td class="paramname"><em>G</em> = <code>NTL::ZZX(1,&#160;1)</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>constructor: G defaults to the monomial X, <a class="el" href="classhelib_1_1_p_algebra_mod.html" title="The structure of Z[X]/(Phi_m(X), p)">PAlgebraMod</a> from context </p>

</div>
</div>
<a id="a100aaeeedbaf9219fd000f912242a98b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a100aaeeedbaf9219fd000f912242a98b">&#9670;&nbsp;</a></span>EncryptedArray() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">helib::EncryptedArray::EncryptedArray </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classhelib_1_1_context.html">Context</a> &amp;&#160;</td>
          <td class="paramname"><em>context</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classhelib_1_1_p_algebra_mod.html">PAlgebraMod</a> &amp;&#160;</td>
          <td class="paramname"><em>_alMod</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>constructor: G defaults to F0, <a class="el" href="classhelib_1_1_p_algebra_mod.html" title="The structure of Z[X]/(Phi_m(X), p)">PAlgebraMod</a> explicitly given </p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a7bb033049827a4e517b512faefec9ec6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7bb033049827a4e517b512faefec9ec6">&#9670;&nbsp;</a></span>addCoord()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">long helib::EncryptedArray::addCoord </td>
          <td>(</td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>i</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>k</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>offset</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="ab5f2dc888e3749fc056f07607718d40d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab5f2dc888e3749fc056f07607718d40d">&#9670;&nbsp;</a></span>badDimensionAutomorphCorrection()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void helib::EncryptedArray::badDimensionAutomorphCorrection </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classhelib_1_1_ctxt.html">Ctxt</a> &amp;&#160;</td>
          <td class="paramname"><em>ctxt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>i</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>amt</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a91e0ea6381b603ca278ac1ca64b289f7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a91e0ea6381b603ca278ac1ca64b289f7">&#9670;&nbsp;</a></span>buildLinPolyCoeffs()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void helib::EncryptedArray::buildLinPolyCoeffs </td>
          <td>(</td>
          <td class="paramtype">std::vector&lt; NTL::ZZX &gt; &amp;&#160;</td>
          <td class="paramname"><em>C</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::vector&lt; NTL::ZZX &gt; &amp;&#160;</td>
          <td class="paramname"><em>L</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="aac8802bf761211269b152fe080301136"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aac8802bf761211269b152fe080301136">&#9670;&nbsp;</a></span>coordinate()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">long helib::EncryptedArray::coordinate </td>
          <td>(</td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>i</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>k</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a909d67c9c516ec5b4f99790f30068ff4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a909d67c9c516ec5b4f99790f30068ff4">&#9670;&nbsp;</a></span>decode()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename PTXT , typename ARRAY &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void helib::EncryptedArray::decode </td>
          <td>(</td>
          <td class="paramtype">ARRAY &amp;&#160;</td>
          <td class="paramname"><em>array</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const PTXT &amp;&#160;</td>
          <td class="paramname"><em>ptxt</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="aa014f79a12bb1ca61a83ec3a1f43d858"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa014f79a12bb1ca61a83ec3a1f43d858">&#9670;&nbsp;</a></span>decrypt()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void helib::EncryptedArray::decrypt </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classhelib_1_1_ctxt.html">Ctxt</a> &amp;&#160;</td>
          <td class="paramname"><em>ctxt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classhelib_1_1_sec_key.html">SecKey</a> &amp;&#160;</td>
          <td class="paramname"><em>sKey</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">T &amp;&#160;</td>
          <td class="paramname"><em>ptxt</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="adc1452ff938cb0b4cf5f3d6aa335caaa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adc1452ff938cb0b4cf5f3d6aa335caaa">&#9670;&nbsp;</a></span>dimension()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">long helib::EncryptedArray::dimension </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="ab2662cc935cd36e0adc8eb52eb8546ee"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab2662cc935cd36e0adc8eb52eb8546ee">&#9670;&nbsp;</a></span>dispatch()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;template&lt; typename &gt; class T, typename... Args&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void helib::EncryptedArray::dispatch </td>
          <td>(</td>
          <td class="paramtype">Args &amp;&amp;...&#160;</td>
          <td class="paramname"><em>args</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="aa3175ec1734ff04440b8df29ec4cf2f4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa3175ec1734ff04440b8df29ec4cf2f4">&#9670;&nbsp;</a></span>encode()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename PTXT , typename ARRAY &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void helib::EncryptedArray::encode </td>
          <td>(</td>
          <td class="paramtype">PTXT &amp;&#160;</td>
          <td class="paramname"><em>ptxt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const ARRAY &amp;&#160;</td>
          <td class="paramname"><em>array</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a1b802f329dd409388d9da48cd8218726"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1b802f329dd409388d9da48cd8218726">&#9670;&nbsp;</a></span>encodeUnitSelector()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void helib::EncryptedArray::encodeUnitSelector </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespacehelib.html#a4d6002f36f1a61982fded09adf1331ca">zzX</a> &amp;&#160;</td>
          <td class="paramname"><em>ptxt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>i</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a51692448b383260437f94880699ec0b8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a51692448b383260437f94880699ec0b8">&#9670;&nbsp;</a></span>encrypt()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void helib::EncryptedArray::encrypt </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classhelib_1_1_ctxt.html">Ctxt</a> &amp;&#160;</td>
          <td class="paramname"><em>ctxt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classhelib_1_1_pub_key.html">PubKey</a> &amp;&#160;</td>
          <td class="paramname"><em>pKey</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const T &amp;&#160;</td>
          <td class="paramname"><em>ptxt</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="acb9a52b2aae4f41b6ac4a1ababec282a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acb9a52b2aae4f41b6ac4a1ababec282a">&#9670;&nbsp;</a></span>getAlMod()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="classhelib_1_1_p_algebra_mod.html">PAlgebraMod</a>&amp; helib::EncryptedArray::getAlMod </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="ada6929e7387f3fd6eb74ac762bbe1fcc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ada6929e7387f3fd6eb74ac762bbe1fcc">&#9670;&nbsp;</a></span>getContext()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="classhelib_1_1_context.html">Context</a>&amp; helib::EncryptedArray::getContext </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a17703423ee9ce78df279ae701bcabdbd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a17703423ee9ce78df279ae701bcabdbd">&#9670;&nbsp;</a></span>getCx()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="classhelib_1_1_encrypted_array_cx.html">EncryptedArrayCx</a>&amp; helib::EncryptedArray::getCx </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="ac226637f8cf23a177ae75f5bbedd35e9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac226637f8cf23a177ae75f5bbedd35e9">&#9670;&nbsp;</a></span>getDegree()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">long helib::EncryptedArray::getDegree </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="aa8d1a159d42064013aec1f949bb47327"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa8d1a159d42064013aec1f949bb47327">&#9670;&nbsp;</a></span>getDerived()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename type &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="classhelib_1_1_encrypted_array_derived.html">EncryptedArrayDerived</a>&lt;type&gt;&amp; helib::EncryptedArray::getDerived </td>
          <td>(</td>
          <td class="paramtype">type&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>downcast operator example: const EncryptedArrayDerived&lt;PA_GF2&gt;&amp; rep = ea.getDerived(PA_GF2()); </p>

</div>
</div>
<a id="aabf7802b8dbea7aede4c27daeb98166f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aabf7802b8dbea7aede4c27daeb98166f">&#9670;&nbsp;</a></span>getPAlgebra()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="classhelib_1_1_p_algebra.html">PAlgebra</a>&amp; helib::EncryptedArray::getPAlgebra </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a2e615f01bff3cd2a1f679e419343eeed"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2e615f01bff3cd2a1f679e419343eeed">&#9670;&nbsp;</a></span>getTag()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespacehelib.html#ab0181d82dc81ed4d1f8c1d950b4efd7e">PA_tag</a> helib::EncryptedArray::getTag </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="af8c628cad17d0545363424a7b69cb21f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af8c628cad17d0545363424a7b69cb21f">&#9670;&nbsp;</a></span>nativeDimension()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">long helib::EncryptedArray::nativeDimension </td>
          <td>(</td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>i</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="ad5fc659aaaeeb403f21b3c5a951768ce"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad5fc659aaaeeb403f21b3c5a951768ce">&#9670;&nbsp;</a></span>operator=()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classhelib_1_1_encrypted_array.html">EncryptedArray</a>&amp; helib::EncryptedArray::operator= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classhelib_1_1_encrypted_array.html">EncryptedArray</a> &amp;&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a708feecf486157805b14f0856523be4d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a708feecf486157805b14f0856523be4d">&#9670;&nbsp;</a></span>random()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void helib::EncryptedArray::random </td>
          <td>(</td>
          <td class="paramtype">std::vector&lt; T &gt; &amp;&#160;</td>
          <td class="paramname"><em>array</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="ab7cb2f5fdc1c7d4f98e4b6cd7a1bf2fc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab7cb2f5fdc1c7d4f98e4b6cd7a1bf2fc">&#9670;&nbsp;</a></span>restoreContext()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void helib::EncryptedArray::restoreContext </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a41642d04c74633f6c1a4d23dbde50054"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a41642d04c74633f6c1a4d23dbde50054">&#9670;&nbsp;</a></span>restoreContextForG()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void helib::EncryptedArray::restoreContextForG </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a0f887afd152534c4e5a698962b38565e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0f887afd152534c4e5a698962b38565e">&#9670;&nbsp;</a></span>rotate()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void helib::EncryptedArray::rotate </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classhelib_1_1_ctxt.html">Ctxt</a> &amp;&#160;</td>
          <td class="paramname"><em>ctxt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>k</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="af47cc08cfdfd71951986be4fe7f52816"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af47cc08cfdfd71951986be4fe7f52816">&#9670;&nbsp;</a></span>rotate1D() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void helib::EncryptedArray::rotate1D </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classhelib_1_1_ctxt.html">Ctxt</a> &amp;&#160;</td>
          <td class="paramname"><em>ctxt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>i</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>k</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>dc</em> = <code>false</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a43affe53523fea549000a6c5a649a3d8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a43affe53523fea549000a6c5a649a3d8">&#9670;&nbsp;</a></span>rotate1D() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename U &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void helib::EncryptedArray::rotate1D </td>
          <td>(</td>
          <td class="paramtype">std::vector&lt; U &gt; &amp;&#160;</td>
          <td class="paramname"><em>out</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::vector&lt; U &gt; &amp;&#160;</td>
          <td class="paramname"><em>in</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>i</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>offset</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>rotate an array by offset in the i'th dimension (output should not alias input) </p>

</div>
</div>
<a id="aa2d8dd041802b88703a472da3ad9150d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa2d8dd041802b88703a472da3ad9150d">&#9670;&nbsp;</a></span>shift()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void helib::EncryptedArray::shift </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classhelib_1_1_ctxt.html">Ctxt</a> &amp;&#160;</td>
          <td class="paramname"><em>ctxt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>k</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="abdda60252affd27b27117b0b692db601"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abdda60252affd27b27117b0b692db601">&#9670;&nbsp;</a></span>shift1D()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void helib::EncryptedArray::shift1D </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classhelib_1_1_ctxt.html">Ctxt</a> &amp;&#160;</td>
          <td class="paramname"><em>ctxt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>i</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>k</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a9b9d09478922ab218c94de0f6477fda2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9b9d09478922ab218c94de0f6477fda2">&#9670;&nbsp;</a></span>size()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">long helib::EncryptedArray::size </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a23ded635ce06ba41ecbf30b801f67e8b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a23ded635ce06ba41ecbf30b801f67e8b">&#9670;&nbsp;</a></span>sizeOfDimension()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">long helib::EncryptedArray::sizeOfDimension </td>
          <td>(</td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>i</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>/HElib/include/helib/<a class="el" href="_encrypted_array_8h_source.html">EncryptedArray.h</a></li>
</ul>
</div><!-- contents -->
<!-- HTML footer for doxygen 1.8.8-->
<!-- start footer part -->
</div>
</div>
</div>
</div>
</div>
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.18
</small></address>
</body>
        <script type="text/javascript" src="doxy-boot.js"></script>
</html>
